package com.hivekion.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hivekion.common.entity.PagedResultVo;
import com.hivekion.goods.domain.GoodEntity;
import com.hivekion.goods.domain.vo.CreateGoodInputVo;
import com.hivekion.goods.domain.vo.GoodSearchInputVo;
import com.hivekion.goods.domain.vo.GoodViewVo;

public interface IGoodService extends IService<GoodEntity> {
    /**
     * 发布商品
     *
     * @param vo
     * @return
     */
    boolean add(CreateGoodInputVo vo);

    /**
     * 分页获取商品列表
     *
     * @param vo
     * @return
     */
    PagedResultVo<GoodViewVo> getList(GoodSearchInputVo vo);
}
